
/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const productRouter = {
  path: '/product',
  component: Layout,
  name: '商品管理',
  meta: {
    title: '商品管理',
    subtitle:'商品',
    icon: 'menu_product'
  },
  children: [
    {
      path: '/product/list',
      component: () => import('@/views/product/list'),
      name: 'product-list',
      meta: { title: '菜品管理',subtitle:'菜品', icon: 'menu_product', permissions: ['product.query'] }
    },
    {
      path: '/product/productExport',
      component: () => import('@/views/product/productExport'),
      name: 'product-productExport',
      meta: { title: '导入导出', icon: 'menu_product', permissions: ['product.export'] },
      hidden: true
    },

    {
      path: '/product/add',
      component: () => import('@/views/product/add'),
      name: 'product-add',
      meta: { title: '新增菜品', icon: 'menu_product' },
      hidden: true
    },
    {
      path: '/product/edit',
      component: () => import('@/views/product/edit'),
      name: 'product-edit',
      meta: { title: '修改菜品', icon: 'menu_product' },
      hidden: true
    },
    {
      path: '/product/index',
      component: () => import('@/views/product/index'),
      name: 'product-index',
      meta: { title: '菜品详情', icon: 'menu_product' },
      hidden: true
    },
    {
      path: '/freight/list',
      component: () => import('@/views/freight/list'),
      name: 'freight-list',
      meta: { title: '运费模板', subtitle:'运费',icon: 'menu_freight', permissions: ['freight.query'] }
    },

    {
      path: '/setmeal/list',
      component: () => import('@/views/setmeal/list'),
      name: 'setmeal-list',
      meta: { title: '套餐管理',subtitle:'商品', icon: 'menu_product', permissions: ['setmeal.query'] }
    },
    {
      path: '/setmeal/productExport',
      component: () => import('@/views/setmeal/productExport'),
      name: 'product-productExport',
      meta: { title: '导入导出', icon: 'menu_product', permissions: ['setmeal.export'] },
      hidden: true
    },

    {
      path: '/setmeal/add',
      component: () => import('@/views/setmeal/add'),
      name: 'setmeal-add',
      meta: { title: '新增套餐', icon: 'menu_product' },
      hidden: true
    },
    {
      path: '/setmeal/edit',
      component: () => import('@/views/setmeal/edit'),
      name: 'setmeal-edit',
      meta: { title: '修改套餐', icon: 'menu_product' },
      hidden: true
    },



    {
      path: '/setmeal/index',
      component: () => import('@/views/setmeal/index'),
      name: 'setmeal-index',
      meta: { title: '套餐详情', icon: 'menu_product' },
      hidden: true
    },

    // {
    //   path: '/management/list',
    //   component: () => import('@/views/management/list'),
    //   name: 'product-list',
    //   meta: { title: '菜品管理',subtitle:'菜品', icon: 'menu_product', permissions: ['management.query'] }
    // },
    // {
    //   path: '/management/productExport',
    //   component: () => import('@/views/management/productExport'),
    //   name: 'product-productExport',
    //   meta: { title: '导入导出', icon: 'menu_product', permissions: ['product.export'] },
    //   hidden: true
    // },

    // {
    //   path: '/management/add',
    //   component: () => import('@/views/management/add'),
    //   name: 'product-add',
    //   meta: { title: '新增菜品', icon: 'menu_product' },
    //   hidden: true
    // },
    // {
    //   path: '/management/edit',
    //   component: () => import('@/views/management/edit'),
    //   name: 'product-edit',
    //   meta: { title: '修改菜品', icon: 'menu_product' },
    //   hidden: true
    // },
    // {
    //   path: '/management/index',
    //   component: () => import('@/views/management/index'),
    //   name: 'product-index',
    //   meta: { title: '菜品详情', icon: 'menu_product' },
    //   hidden: true
    // },

  ]
}
export default productRouter
